package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "h_disease_info")
public class DiseaseInfo implements Serializable {

	private static final long serialVersionUID = 6570016886210663170L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id_bigint", columnDefinition = "bigint")
	private Long id;
	@Column(name = "disease_name_nvarchar", columnDefinition = "varchar(255)")
	private String diseaseName;
	@Column(name = "d_type_int", columnDefinition = "int comment '1=中医,2=西医,3=中医辨证'")
	private Integer dType;
	@Column(name = "code_nvarchar", columnDefinition = "varchar(255)")
	private String code;
	@Column(name = "disable_bit", columnDefinition = "bit")
	private Boolean disable;
	@Column(name = "create_member_nvarchar", columnDefinition = "varchar(255)")
	private String createMember;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
}
